<?php

/**
 * @package adBlueprintPlugin
 * @subpackage helper
 * @author Alexander Deruwe <aderuwe@aqs-carcontrol.be>
 * @since 2007-11-12
 *
 * By using this helper in the template, the Blueprint stylesheets are added
 * to the response.  No other action is required.
 */

function _loadResources()
{
  // Get response object
  $response = sfContext::getInstance()->getResponse();
  
  // Check if we will use compressed Blueprint stylesheets or not
  $compressed = sfConfig::get('app_blueprint_compressed', 'off');
  
  if ($compressed)
  {
    $path = '/adBlueprintPlugin/css/blueprint/compressed/';
  }
  else
  {
    $path = '/adBlueprintPlugin/css/blueprint/';
  }
  
  // Add Blueprint stylesheets to response
  $response->addStylesheet($path . 'screen');
  $response->addStylesheet($path . 'print', '', array('media' => 'print'));
}

_loadResources();
